<template>
  <el-table-column
    label="积分类型"
    prop="payOfCurrencyId"
    width="150"
  >
    <template #header>
      <span style="color: red">* </span>积分类型
    </template>
    <template #default="{row}">
      <el-select
        :model-value="row.payOfCurrencyId"
        @change="(value) => row.payOfCurrencyId = value"
      >
        <el-option
          v-for="item in options"
          :key="item.id"
          :label="item.name"
          :value="item.id"
        />
      </el-select>
    </template>
  </el-table-column>
</template>

<script setup lang="ts">
import {ICurrencyItem} from "@/api/modules/pointsMall";

defineProps<{
  options: ICurrencyItem[]
}>()
</script>

<style scoped>

</style>
